/**
 * @Author xieha
 * @Email xiehao35755@163.com
 * @Date 2019-11-23 13:28
 */
package com.xh.blog.user.config;
import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * Created by xieha on 2019-11-23.
 */
@EnableTransactionManagement
@Configuration
@MapperScan("com.xh.blog.user.dao")
public class MybatisPlusConfig {
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
